how to unzip files using zipfile module python

35

how to unzip files using zipfile module python -

import zipfile
with zipfile.ZipFile("file.zip","r") as zip_ref:
    zip_ref.extractall("targetdir")

Comments

Submit
0 Comments